//
//  ViewController.m
//  PMD
//
//  Created by xingshuai on 2020/9/30.
//

#import "ViewController.h"

#import "ZScrollLabel.h"

@interface ViewController ()

@property (nonatomic, strong) ZScrollLabel *nameLabel;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.nameLabel = [[ZScrollLabel alloc]initWithFrame:CGRectMake(10, 100, self.view.frame.size.width-20, 30)];
    self.nameLabel.backgroundColor = [UIColor orangeColor];
    self.nameLabel.textColor = [UIColor redColor];
    self.nameLabel.font = [UIFont systemFontOfSize:15];
    self.nameLabel.scrollDuration = 13;
    self.nameLabel.labelAlignment = ZScrollLabelAlignmentLeft;
    self.nameLabel.text = @"大户束带结发垃圾地方可能阿萨德拿饭弹说的反对防弹少年附加按当年房价你是DNF阿萨德拿饭";
    // 设置带阴影的文字
    //[self.nameLabel setShadowTextColor:[UIColor blackColor] shadowText:@"大户束带结发垃圾地方可能阿萨德拿饭弹说的反对防弹少年附加按当年房价你是DNF阿萨德拿饭"];
    [self.view addSubview:self.nameLabel];
    
}


@end
